﻿using System;
using System.Runtime.Serialization;

using LuxDiner.Model.Members;
namespace LuxDiner.Model.Financial
{
    [DataContract]
    public class PaymentModel : MBase
    {
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public int ID { get; set; }
        [Model]
        [DataMember]
        public int CustomerID { get; set; }
        [Model]
        [DataMember]
        public decimal Money { get; set; }
        [Model]
        [DataMember]
        public string Description { get; set; }
        [Model]
        [DataMember]
        public decimal Balance { get; set; }
        [Model]
        [DataMember]
        public System.DateTime NoteDate { get; set; }
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public System.DateTime CreatedOn { get; set; }
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        [DataMember]
        public int OperatorUserID { get; set; }
        [Model]
        [DataMember]
        public string OrderNo { get; set; }
        [Model]
        [DataMember]
        public int Method { get; set; }

        #region Help
        [DataMember]
        public CustomerModel Customer { get; set; }
        #endregion
    }
    
    [DataContract]
    public class PaymentCollection : ModelCollectionBase<PaymentModel> {}
}
